﻿<%@ Page Language="C#" MasterPageFile="~/GUIMaster.Master" AutoEventWireup="true" CodeBehind="LastCreatedTrips.aspx.cs" Inherits="TripLOA.GUI.secure.LastCreatedTrips" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHomePage" runat="server">

<h1>
    <asp:Label ID="lblTripList" runat="server" 
        Text="Ultimi 10 viaggi creati"></asp:Label>
</h1>
<div id="createdTripTable" >
    <asp:GridView ID = "GridViewCreatedTrips" AutoGenerateColumns = "False" runat = "server" 
    OnRowCommand="GridViewCreatedTrips_RowCommand" 
        meta:resourcekey="GridViewCreatedTripsResource1" BorderStyle="None" 
        GridLines="None" >
    <PagerSettings Mode="NextPrevious"/>
    <Columns>

    <asp:BoundField DataField = "ID"  
            HeaderStyle-CssClass="headerCreatedTripTable" ItemStyle-CssClass="contentCreatedTripTable" ItemStyle-Width="10%"
            HeaderText="ID" >
        <HeaderStyle CssClass="headerCreatedTripTable"></HeaderStyle>

        <ItemStyle CssClass="contentCreatedTripTable"></ItemStyle>
        </asp:BoundField>
        
    <asp:BoundField DataField = "OriginCity"  
            HeaderStyle-CssClass="headerCreatedTripTable" ItemStyle-CssClass="contentCreatedTripTable"
            HeaderText="Partenza">
        <HeaderStyle CssClass="headerCreatedTripTable"></HeaderStyle>

        <ItemStyle CssClass="contentCreatedTripTable"></ItemStyle>
        </asp:BoundField>
        
    <asp:BoundField DataField = "DestinationCity" HeaderStyle-CssClass="headerCreatedTripTable" ItemStyle-CssClass="contentCreatedTripTable"
            HeaderText="Arrivo">
    
        <HeaderStyle CssClass="headerCreatedTripTable"></HeaderStyle>

        <ItemStyle CssClass="contentCreatedTripTable"></ItemStyle>
        </asp:BoundField>
    
    <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
    <ItemTemplate>
        <asp:LinkButton ID ="TripDetail"  runat="server" 
            Text = "Dettagli" ></asp:LinkButton>
    </ItemTemplate>
    
    </asp:TemplateField>
   
    </Columns>
    
    
    </asp:GridView>


</div>



</asp:Content>
